import Http from '@/utils/Http';
import { Uri } from '@/constant/Constants';
import { ConfigureResponse } from '@/protocol/response/CommonResponse';
import Util from '@/utils/Util';
import { CacheKeys } from '@/constant/CacheKeys';
import UniUtil from '@/utils/UniUtil';
import LoggerUtil from '@/utils/LoggerUtil';
import { XhsResponse } from '@/protocol/response/XhsResponse';
import PostInfo from '@/model/PostInfo';
import ProtocolResponse from '@/protocol/response/ProtocolResponse';

export namespace AIGeneratorService {

    export async function generate(postInfo: PostInfo): Promise<ProtocolResponse<any>> {
        return Http.request(Uri.ai_generator_generate, postInfo, new ProtocolResponse(),true,true);
    }
    export async function rewrite(postInfo: PostInfo): Promise<ProtocolResponse<any>> {
        return Http.request(Uri.ai_generator_rewrite, postInfo, new ProtocolResponse(),true,true);
    }
}